package 数据结构下

object Exercise01 {
  def main(args: Array[String]): Unit = {

    val list = List("tom", "tony", "san")
    val value = list.map(toUp)
    println(value)

  }

  def toUp(n: String): String = {
    n.toUpperCase()
  }

}
